package com.yuhs.zixing.pay.dal.merchant.dto;

import java.util.Date;

/**
 * 这是MyBatis Generator自动生成的Model Class.
 * 对应的数据表是 : pay_merchant_info
 * 数据表注释 : 支付商户信息表
 *
 * @author yuhongsheng
 * @date 2020-12-03 22:13:38
 */
public class PayMerchantInfoDTO {
    /**
     * 主键
     */
    private Long id;

    /**
     * 商户号
     */
    private String merchantNo;

    /**
     * 商户名称
     */
    private String merchantName;

    /**
     * 商户类型：1 支付宝 2 微信
     */
    private String merchantType;

    /**
     * 商户所属公司
     */
    private String merchantCompany;

    /**
     * 商户id
     * 支付宝为 pid
     * 微信和商户号一样
     */
    private String merchantId;

    /**
     * 退款类型
     */
    private String refundType;

    /**
     * 商户密钥  不能作为查询条件
     */
    private String merchantSign;

    /**
     * 操作员
     */
    private String operator;

    /**
     * 修改者
     */
    private String modifyUser;

    /**
     * 修改时间
     */
    private Date modifyDate;

    /**
     * 创建者
     */
    private String createUser;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 是否删除 0 有效 1 删除
     */
    private String deleted;

    /**
     * 证书 一般只有微信使用
     */
    private byte[] certContext;

    /**
     * 商户私钥  不能作为查询条件
     */
    private String merchantPrivateKey;

    /**
     * 商户公钥  不能作为查询条件
     */
    private String merchantPublicKey;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMerchantNo() {
        return merchantNo;
    }

    public void setMerchantNo(String merchantNo) {
        this.merchantNo = merchantNo == null ? null : merchantNo.trim();
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName == null ? null : merchantName.trim();
    }

    public String getMerchantType() {
        return merchantType;
    }

    public void setMerchantType(String merchantType) {
        this.merchantType = merchantType == null ? null : merchantType.trim();
    }

    public String getMerchantCompany() {
        return merchantCompany;
    }

    public void setMerchantCompany(String merchantCompany) {
        this.merchantCompany = merchantCompany == null ? null : merchantCompany.trim();
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId == null ? null : merchantId.trim();
    }

    public String getRefundType() {
        return refundType;
    }

    public void setRefundType(String refundType) {
        this.refundType = refundType == null ? null : refundType.trim();
    }

    public String getMerchantSign() {
        return merchantSign;
    }

    public void setMerchantSign(String merchantSign) {
        this.merchantSign = merchantSign == null ? null : merchantSign.trim();
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator == null ? null : operator.trim();
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser == null ? null : modifyUser.trim();
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted == null ? null : deleted.trim();
    }

    public byte[] getCertContext() {
        return certContext;
    }

    public void setCertContext(byte[] certContext) {
        this.certContext = certContext;
    }

    public String getMerchantPrivateKey() {
        return merchantPrivateKey;
    }

    public void setMerchantPrivateKey(String merchantPrivateKey) {
        this.merchantPrivateKey = merchantPrivateKey == null ? null : merchantPrivateKey.trim();
    }

    public String getMerchantPublicKey() {
        return merchantPublicKey;
    }

    public void setMerchantPublicKey(String merchantPublicKey) {
        this.merchantPublicKey = merchantPublicKey == null ? null : merchantPublicKey.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", merchantNo=").append(merchantNo);
        sb.append(", merchantName=").append(merchantName);
        sb.append(", merchantType=").append(merchantType);
        sb.append(", merchantCompany=").append(merchantCompany);
        sb.append(", merchantId=").append(merchantId);
        sb.append(", refundType=").append(refundType);
        sb.append(", merchantSign=").append(merchantSign);
        sb.append(", operator=").append(operator);
        sb.append(", modifyUser=").append(modifyUser);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", createUser=").append(createUser);
        sb.append(", createDate=").append(createDate);
        sb.append(", deleted=").append(deleted);
        sb.append(", certContext=").append(certContext);
        sb.append(", merchantPrivateKey=").append(merchantPrivateKey);
        sb.append(", merchantPublicKey=").append(merchantPublicKey);
        sb.append("]");
        return sb.toString();
    }
}